﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true"
    CodeBehind="ResourceRequestWellView.aspx.cs" Inherits="Web.Views.ResourceRequestManage.ResourceRequestWellView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Javascript/UserControls.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
    <button type="button" class="sexybutton"  id="btnBack" onclick="javascript:window.location.href='ResourceRequestRecordList.aspx?savecookie=1';" ><span><span><span class="transfer">返回</span></span></span></button>
    </div>
    <div style="margin: 10px; margin-right: 10px;">
        <fieldset>
            <legend>元数据 </legend>
            <fieldset>
                <table cellpadding="0" cellspacing="0" width="100%" class="editTable">
                    <tr>
                        <th style="width: 12%">
                            文件名
                        </th>
                        <td colspan="4">
                            <asp:TextBox runat="server" ID="txtDatafileName" Width="100%" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th style="width: 12%">
                            施工措施
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWorkMode" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            开工日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtBEGINDATE" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            完工日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtFINISHDATE" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th style="width: 12%">
                            A4
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtA4" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            A3
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtA3" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            A0
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtA0" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            井别
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWellType" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                            井号
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWellCode" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                        </th>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            开钻日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtBeginWorkDate" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                            完钻日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtFinishWorkDate" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                            完钻深度
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWellDepth" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <fieldset>
            <fieldset>
                <legend>详细信息 </legend>
                <div>
                    <ep:EPGridView ID="gv_SingleWellDetail" runat="server" Width="100%" AutoGenerateColumns="False"
                        dataSortExpression="" EnableEmptyContentRender="True" EnableModelValidation="True"
                        OnRowDataBound="gv_SingleWellDetail_RowDataBound"
                        Goto="0" GvPageCount="0" ShowCheckBox="False">
                        <Columns>
                            <asp:BoundField HeaderText="文件名" DataField="detailname" HeaderStyle-Width="40%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="A4" DataField="A4" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="A3" DataField="A3" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="A0" DataField="A0" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="定位页码" DataField="PageNum" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            
                            <asp:BoundField Visible="false" DataField="DetailID" />
                        </Columns>
                        <PagerTemplate>
                            <asp:Table ID="Table1" runat="server">
                                <asp:TableRow ID="TableRow1" runat="server">
                                    <asp:TableCell ID="TableCell1" runat="server">
                                        <asp:Label runat="server" ID="lbPage" Style="margin-right: 50px;">总共有几页</asp:Label>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="First" ID="btnFirst">
                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/NewGrid/page+.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Prev" ID="btnPrev">
                                            <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/NewGrid/page+-.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Next" ID="btnNext">
                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/NewGrid/page-+.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Last" ID="btnLast">
                                            <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/NewGrid/page-.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:TextBox runat="server" Height="15px" Width="30px" ID="txtPageInex" onkeydown="enteryKeyEvent(this);"></asp:TextBox>
                                        <asp:LinkButton runat="server" CommandName="goto" ID="btnGoto">
                                            <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/NewGrid/go.png"></asp:Image>
                                        </asp:LinkButton>
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </PagerTemplate>
                    </ep:EPGridView>
                </div>
            </fieldset>
            <fieldset>
                <legend>附件信息</legend>
                <ep:EPGridView ID="gv_AttachMent" runat="server" Width="100%" AutoGenerateColumns="False"
                    dataSortExpression="" EnableEmptyContentRender="True" EnableModelValidation="True"
                    OnRowDataBound="gv_AttachMent_OnRowDataBound"
                    Goto="0" GvPageCount="0" ShowCheckBox="False">
                    <Columns>
                        <%--<asp:HyperLinkField DataTextField="attachmentname" HeaderText="文件名" DataNavigateUrlFields="attachmentid"
                            DataNavigateUrlFormatString="~/WebDoc/WebDoc.aspx?AttachmentID={0}&amp;AttachmentDBHelperString=singlewell"
                            Target="_blank">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:HyperLinkField>--%>
                        <asp:BoundField DataField="attachmentname"  HeaderText="文件名">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="uploadtime" DataFormatString="{0: yyyy-MM-dd}" HeaderText="上传时间">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="文件大小" DataField="attachmentsize" HeaderStyle-Width="10%"
                            ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                         <asp:BoundField HeaderText="能否浏览" DataField="attachmentsize" HeaderStyle-Width="4%"
                            ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                         <asp:BoundField HeaderText="能否下载" DataField="attachmentsize" HeaderStyle-Width="4%"
                            ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="attachmentid" DataField="attachmentid" HeaderStyle-Width="10%"
                            ItemStyle-HorizontalAlign="Center" Visible="False">
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                </ep:EPGridView>
            </fieldset>
        </fieldset>
    </div>
</asp:Content>
